package com.damon.g2048.view;

import com.damon.g2048.R;
import com.damon.g2048.utils.AppInit;

import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.view.View;

/**
 * 
 * @ClassName: AboutDialog
 * @author Damon.Han
 * @Description: 关于
 * @date 2014-4-14 下午2:18:53
 * 
 */
public class WinDialog extends AlertDialog {

	public WinDialog(Context context) {
		super(context);
		final View view = getLayoutInflater().inflate(R.layout.win, null);
		// setButton(context.getText(R.string.action_close), (OnClickListener)
		// null);
		// setButton(AlertDialog.BUTTON_POSITIVE, "重玩", new OnClickListener() {
		//
		// @Override
		// public void onClick(DialogInterface dialog, int which) {
		//
		// }
		// });
		setIcon(R.drawable.ic_launcher);
		setTitle(context.getText(R.string.app_name) + AppInit.getVersionName(context));
		setView(view);
	}
}
